execute store result score #index temp run data get storage vs:system temp.VS.index
execute store result score #slot temp run data get storage vs:system temp.VS.slot
execute store result storage vs:system temp.VS.index int 1 run scoreboard players add #index temp 1
execute store result storage vs:system temp.VS.slot int 1 run scoreboard players add #slot temp 1

execute if score #slot temp matches 10.. run return run function vs:system/game_ctrol/void_shop/slot/read_items/break_loop

scoreboard players reset #index temp
scoreboard players reset #slot temp

function vs:system/game_ctrol/void_shop/slot/read_items/read with storage vs:system temp.VS